package com.inventive.jmscache.server;

import org.springframework.stereotype.Component;

import javax.jms.JMSException;
import javax.jms.XAConnection;
import javax.jms.XAConnectionFactory;

/**
 * User: grant
 */
@Component
public class JmsCacheXAConnectionFactory extends JmsCacheConnectionFactory implements XAConnectionFactory {


    public JmsCacheXAConnectionFactory() {
        super();
    }

    public XAConnection createXAConnection() throws JMSException {
        return new JmsCacheXAConnection(jmsCacheServer);
    }

    public XAConnection createXAConnection(String s, String s1) throws JMSException {
        return new JmsCacheXAConnection(jmsCacheServer);
    }
}
